package com.shop.domin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

//#模块表
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("modules")
public class Modules implements Serializable {
    @TableId(value = "modulesId",type = IdType.AUTO)
    private Integer modulesId;//模块编号

    private String modulesName;//模块名称

    private Integer modulesParentId;//父模块编号

    private String modulesPath;//模块路径

    private Integer modulesWeight;//权重值

    private String modulesIcon;//模块图标
    @TableField(exist = false)//标志这个字段非数据库字段
    private List<Modules> children;//子类

    private Integer exit1;//备用字段1

    private String exit2;//备用字段2
}
